package com.wql.cookie;

/**
 * Cookie参数类
 * 
 * @author wuqinglong
 * @time 2013年11月6日 上午8:42:38
 * @email hellowql@126.com
 * 
 */
public class CookieOption {
	private String name;
	private String value;
	private String domain;
	private String path = "/";
	private Boolean secure = Boolean.FALSE;// 是否只是https传输
	private Boolean httpOnly = Boolean.TRUE;// 是否是后端cookie
	private Integer maxAge;// 有效期，秒做单位

	public String getName() {
		return name;
	}

	public CookieOption setName(String name) {
		this.name = name;
		return this;
	}

	public String getValue() {
		return value;
	}

	public CookieOption setValue(String value) {
		this.value = value;
		return this;
	}

	public String getDomain() {
		return domain;
	}

	public CookieOption setDomain(String domain) {
		this.domain = domain;
		return this;
	}

	public String getPath() {
		return path;
	}

	public CookieOption setPath(String path) {
		this.path = path;
		return this;
	}

	public Boolean getSecure() {
		return secure;
	}

	public CookieOption setSecure(Boolean secure) {
		this.secure = secure;
		return this;
	}

	public Boolean getHttpOnly() {
		return httpOnly;
	}

	public CookieOption setHttpOnly(Boolean httpOnly) {
		this.httpOnly = httpOnly;
		return this;
	}

	public Integer getMaxAge() {
		return maxAge;
	}

	public CookieOption setMaxAge(Integer maxAge) {
		this.maxAge = maxAge;
		return this;
	}
}
